package com.sicpa.system.mapper;

import com.sicpa.common.core.domain.entity.AssuranceBusinessDataReportTemp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * AssuranceBusinessDataReportTempMapper
 *
 * @author lwf
 */
public interface AssuranceBusinessDataReportTempMapper {

    int deleteByPrimaryKey(Integer tempId);

    int insertSelective(AssuranceBusinessDataReportTemp record);

    AssuranceBusinessDataReportTemp selectByPrimaryKey(Integer tempId);

    int updateByPrimaryKeySelective(AssuranceBusinessDataReportTemp record);

    /**
     * 根据鉴证业务表id获取导入数据
     *
     * @param businessId 鉴证业务主表id
     * @return 鉴证业务表报告导入数据
     * @author wph 20200917
     */
    String selectByBusinessId(Long businessId);

    /**
     * 根据 businessId 获取鉴证业务修改历史
     * @param businessId
     * @return
     */
    List<AssuranceBusinessDataReportTemp> selectEditHistoryByBusinessId(@Param("businessId") Long businessId);
}
